package com.sean.bigdata.chapter03;

import java.util.EmptyStackException;

public interface StackADT<T> {
    boolean push(T element) throws StackOverMaxLength;

    T pop() throws EmptyStackException, StackEmptyException;

    int size();

    boolean isEmpty();

    T peek();
}
